package com.example.class_manage.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;


@Mapper
public interface Apprise_HomeWork_mapper {
    @Update("update homework_pic set appraise=#{appraise},grade=#{grade} where id = #{id} and stu_id = #{stu_id}")
    Integer Apprise_pic(String appraise, String grade, String id, String stu_id);

    @Update("update homework_text set appraise=#{appraise},grade=#{grade},Answer = #{Answer} where id=#{id} and stu_id = #{stu_id}")
    Integer Apprise_text(String appraise, String grade, String Answer, String id, String stu_id);


    @Update("update homework_text set appraise='自动审阅' where id = #{id}")
//id是作业号
    Integer Set_autoAppraise(String id);


}
